package com.woniuxy.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.goods.model.vo.UpdateGoodsVo;
import com.woniuxy.model.entity.Goods;
import com.woniuxy.model.vo.AddGoodsVo;
import com.woniuxy.model.vo.GoodsVo;

import java.util.List;


public interface GoodsService extends IService<Goods> {
    Page<Goods> selectPage(GoodsVo goodsVo);
    Page<Goods> selectPage01(GoodsVo goodsVo);
    Page<Goods> selectPage03(GoodsVo goodsVo);
    Page<Goods> selectPageCondition(GoodsVo goodsVo);

    Page<Goods> selectPageCondition01(GoodsVo goodsVo);

    Boolean addGoods(Goods goods, Integer aid);

    List<Goods> findByListNumber(List<AddGoodsVo> addGoodsList);

    Boolean updateGoods(UpdateGoodsVo updateGoodsVo);

    List<Goods> findAllGoodsNumber();

    //Goods findById(Integer id);
}
